export default {
  path: "/product",
  redirect: "/product/Manage",
  meta: {
    icon: "mingcute:add-circle-fill",
    // showLink: false,
    title: "产品管理",
    rank: 10
  },
  children: [
    {
      path: "/product/manage",
      name: "productManage",
      component: () => import("@/views/product/Index.vue"),
      meta: {
        title: "添加产品",
        icon: "mingcute:add-circle-fill",
        roles: ["admin", "sale"]
      }
    },
    {
      path: "/product/add",
      name: "productAdd",
      component: () => import("@/views/product/AddProduct.vue"),
      meta: {
        title: "添加产品",
        icon: "mingcute:add-circle-fill",
        showLink: false,
        roles: ["admin", "sale"]
      }
    }
  ]
} satisfies RouteConfigsTable;
